import request from '@/service/request'



// 查询接待列表
export const getList = async (params: any) => {
  return await request.get({ url: `/hkb/customer-reception/page`, params })
}

// 新增接待
export const addAdmit = async (params: any) => {
  return await request.post({ headersType: 'application/json',url: `/hkb/customer-reception/create`, data:JSON.stringify(params) })
}

// 编辑接待
export const editAdmit = async (params: any) => {
  return await request.put({ headersType: 'application/json',url: `/hkb/customer-reception/update`, data:JSON.stringify(params) })
}

// 删除接待
export const deleteAdmit = async (id: any) => {
  return await request.delete({ url: `/hkb/customer-reception/delete?id=` + id })
}

// 导出接待
export const exportAdmit = async (id: any) => {
  return await request.delete({ url: '/hkb/customer-reception/export-excel' })
}

//获取名片信息
export const getBusinessCardInfo = async (filepath: any) => {
  return await request.post({ url: '/hkb/customer-reception/getBusinessCardInfo?filePath=' + filepath })
}
